import request from '@/utils/request'

// 获取审批流程
export function fetchApprovalProcess(data) {
    return Promise.resolve({
        data: [
            {
                "approvalType": "或签",
                "current": true,
                "handlers": [
                    {
                        "isCurrent": true,
                        "speech": "",
                        "sptime": "",
                        "status": "审批中",
                        "userName": "龙茂林",
                        "userid": "LongMaoLin"
                    },
                    {
                        "isCurrent": false,
                        "speech": "",
                        "sptime": "2025-08-06 09:52:31",
                        "status": "同意",
                        "userName": "田起立",
                        "userid": "TianQiLi"
                    },
                    {
                        "isCurrent": false,
                        "speech": "",
                        "sptime": "",
                        "status": "审批中",
                        "userName": "郑迪辉",
                        "userid": "ZhengDiHui"
                    },
                    {
                        "isCurrent": false,
                        "speech": "",
                        "sptime": "",
                        "status": "审批中",
                        "userName": "郑朋",
                        "userid": "ZhengPeng"
                    },
                    {
                        "isCurrent": false,
                        "speech": "",
                        "sptime": "",
                        "status": "审批中",
                        "userName": "衷立杰",
                        "userid": "00023"
                    },
                    {
                        "isCurrent": false,
                        "speech": "",
                        "sptime": "",
                        "status": "审批中",
                        "userName": "李明翰",
                        "userid": "00462"
                    }
                ],
                "nodeType": "审批",
                "status": "同意"
            },
            {
                "approvalType": "依次审批",
                "current": false,
                "handlers": [
                    {
                        "isCurrent": false,
                        "speech": "",
                        "sptime": "2025-08-06 09:52:31",
                        "status": "同意",
                        "userName": "田起立",
                        "userid": "TianQiLi"
                    },
                    {
                        "isCurrent": false,
                        "speech": "",
                        "sptime": "",
                        "status": "审批中",
                        "userName": "龙茂林",
                        "userid": "LongMaoLin"
                    }
                ],
                "nodeType": "审批",
                "status": "审批中"
            }
        ]
    })
}
